package com.android.test.jnidemo;

class MyClass {}
public class JniText {

    static {
        System.loadLibrary("Hello");
    }

    public static native String sayHello();

    public static native void test(short s, int i, long l, float f, double d, char c,
                                   boolean z, byte b, String str, Object obj, MyClass p, int[] arr);

    static native int[][] intInt2DArray(int size);
    //访问java的静态方法
    public static native void calJavaStaticMethod();
    //访问java的实例方法
    public static native void callJavaInstaceMethod();

    public native static void accessInstanceField(ClassField obj);

    public native  static void accessStaticField();

    public  native static void YUVtoRBG(int[] rgb, byte[] yuv, int width, int height);

    public native  static int tianTongAudioStart();

    public native  static int tianTongAudioStartMode(int mode);

    public native  static int tianTongAudioStop();

    public native  static int tianTongAudioSFromPc(short[] frame, int len);

    public native  static int tianTongAudioBFromPc(byte[] frame, int len);

    public native  static int startRecieveTianTongAudio();

    public native  static int stopRecieveTianTongAudio();

    public native static int recieveTianTongByteAudio(byte[] frame, int len);

    public native static int recieveTianTongShortAudio(short[] frame, int len);
}
